<template>
  <form :action="action" :method="method" v-on:submit.prevent="ajaxSubmit">
    <slot name="apa" :formData="bar"></slot>
  </form>
</template>
<script>
export default {
  props: {
    action: {
      required: true,
      type: String
    },
    method: {
      default: 'post',
      required: false,
      type: String
    }
  },
  data() {
    return {
      bar: {
        firstName: ''
      }
    }
  },
  methods: {
    ajaxSubmit() {

    }
  }
}
</script>
<style lang="">

</style>